<?php

class Content_Form_Admin_Page_Add extends Nuo_Form
{

	public function init()
	{
		$this -> setTitle('add page');

		$this -> setDescription('content.form.admin.page.create.desc');

		$this -> addElement('text', 'page_title', array(
				'label' => 'title',
				'description' => 'content.form.admin.page.create.title.desc',
				'required' => 1,
				'class' => 'text long-text'
		));

		$this -> addElement('textarea', 'page_summary', array(
				'label' => 'summary',
				'description' => 'content.form.admin.page.create.summary.desc',
				'required' => 1,
				'class' => 'basic'
		));

		$this -> addElement('textarea', 'page_content', array(
				'label' => 'content',
				'description' => 'content.form.admin.page.create.content.desc',
				'required' => 1,
				'class' => 'text long-text'
		));

		$this -> addElement('button', '_submit', array(
				'label' => 'submit',
				'type' => 'submit',
				'class' => 'submit',
				'decorators' => array('ViewHelper'),
		));

		$this -> addElement('button', '_con', array(
				'label' => 'save & continue',
				'type' => 'submit',
				'class' => 'submit',
				'decorators' => array('ViewHelper'),
		));

		$this -> addElement('button', '_cancel', array(
				'label' => 'cancel',
				'type' => 'cancel',
				'class' => 'cancel',
				'decorators' => array('ViewHelper'),
		));

		$this -> addDisplayGroup(array(
				'_submit',
				'_con',
				'_cancel'
		), '_buttons');
	}

}
